import axios from 'axios'
const api = axios.create({
    baseURL: "http://180.76.236.114:3006",
    timeout: 10000,
})
api.interceptors.request.use((config) => {
    config.headers.Authorization = `Bearer ${localStorage.getItem('token')}`
    return config
}, (err) => {
    return Promise.reject(err);
})
api.interceptors.response.use((response) => {
    return response;
}, (err) => {
    return Promise.reject(err);
})
export default api